﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace PaggerApplication.Models {

    public class ProductModel {
        [Display ( Name = "产品编号" )]
        [Required]
        public string ID { get; set; }
        [Display ( Name = "产品名称" )]
        [Required]
        public string Name { get; set; }
        [Display ( Name = "型号规格" )]
        [Required]
        public string Specification { get; set; }
        [Display ( Name = "单价" )]
        [Required]
        public decimal Price { get; set; }
        [Display ( Name = "库存数量" )]
        [Required]
        public double Count { get; set; }
    }

    public class SearchModel {        
        [Display ( Name = "最小库存" )]       
        public double? MinCount { get; set; }
        [Display ( Name = "最大库存" )]        
        public double? MaxCount { get; set; }
    }
}